package com.zt.demo;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.zt.base.BaseController;
import com.zt.org.OOrg;

/**
 * 
 */

/**
 * DemoController 演示控制器
 * 
 * @author zhangzhw
 * 
 */
@Controller
@RequestMapping("/demo")
public class DemoController extends BaseController {

	@Autowired
	private IDemoBusiness iDemoBusiness;
	/**
	 * demolist
	 * 
	 * @return 测试演示结果
	 */
	@RequestMapping(value = "/demolist")
	public ModelAndView demolist() {
		
		List<OOrg> list=iDemoBusiness.findAll();
		return new ModelAndView("/demo/demolist", "list", list);
	}

}
